﻿@model IEnumerable<DLM.Domain.DTO.BonusDTO>
@using Webdiyer.WebControls.Mvc
@{
    ViewBag.Title = "会员积分列表";
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>积分维护</title>
    <link href="@Url.Content("~/Content/css/admin/global.css")" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/admin/global.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.18.custom.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Scripts/jquery-ui-1.8.11.min.js")"></script>
    <script type="text/javascript">
        $(function () {
            $('#add_dialog_link').click(function () {
                $('#add_dialog').dialog({ modal: true }, { width: 680 }, { height: 480 });
            });
        });

        $(function () {
            $(":checkbox").attr("checked", false);
            /**全选与反选**/
            $("#checkAll").click(function () {
                /**方法1**/
                if ($("#checkAll").attr("checked")) {
                    $(":checkbox").attr("checked", true);
                } else {
                    $(":checkbox").attr("checked", false);
                }
            });
        });

    </script>
</head>
<body id="main_body">
    <div class="c1">
        <h1>
            <span>积分列表</span></h1>
        <!--OPERATE S1-->
        <div class="operat_box">
            <span>操作：</span><a href="#"><img src="@Url.Content("~/Content/images/admin/icon_delete.png")" alt="delete" />删除</a>|<a
                href="#"><img src="@Url.Content("~/Content/images/admin/icon_search.png")/" alt="export" />搜索</a>
        </div>
        @using (Html.BeginForm("BactchUpdateBonus", "User", FormMethod.Post))
        {
            <!--OPERATE E1-->
            <!--OPERATE S2-->
            <div class="operat_box">
                <div class="operate_div">
                    <table class="form_tb">
                        <tr>
                            <th>
                                <span>*</span>积分值
                            </th>
                            <td>
                                <input class="text" type="text" name="txtBonus" />
                                <input type="submit" value="批量修改" />
                                <input type="hidden" value="" name="hdID" id="hdID" />
                            </td>
                            @*         <th>
                            <span>*</span>姓名
                        </th>
                        <td>
                            <input class="text" type="text" />
                        </td>
                        <th>
                            <span>*</span>注册时间
                        </th>
                        <td>
                            <input class="text" type="text" />
                        </td>*@
                        </tr>
                    </table>
                </div>
            </div>
            <!--OPERATE E2-->
            <!--TABLE S-->
            <div class="table_box">
                <table summary="活动审核" class="tb">
                    <colgroup>
                        <col class="a" />
                        <col class="b" />
                        <col class="c" />
                        <col class="d" />
                    </colgroup>
                    <thead>
                        <tr>
                            <th>
                                编号
                            </th>
                            <th class="b">
                                账户名称
                            </th>
                            <th>
                                积分值
                            </th>
                            <th>
                                创建时间
                            </th>
                            <th>
                                更新时间
                            </th>
                            <th>
                            </th>
                            <th>
                                <input type="checkbox" id="checkAll" />全选
                            </th>
                        </tr>
                    </thead>
                    <tbody>
                        @foreach (var item in Model)
                        {
                            <tr>
                                <td>
                                    @item.BonusID
                                </td>
                                <td>
                                    @item.AccountName
                                </td>
                                <td>
                                    @item.Bonuses
                                </td>
                                <td>
                                    @item.CreateDate
                                </td>
                                <td>
                                    @item.UpdateDate
                                </td>
                                <td>
                                    @Html.ActionLink("查看", "Detail", new { id = item.UserID })
                                </td>
                                <td>
                                    <input type="checkbox" id="checkedId" name="checkedId" value="@item.BonusID" />
                                    @* @Html.CheckBox(item.BonusID.ToString(), false, new { @class = "checkbox" })*@
                                </td>
                            </tr>
                                    
             
                        }
                    </tbody>
                </table>
            </div>
            <!--TABLE E-->
            <!--Paging S-->
        }
        <div class="paging clearfix">
            @Html.Pager(Model as PagedList<DLM.Domain.DTO.BonusDTO>, new PagerOptions { CssClass = "pageAct", PageIndexParameterName = "page", ShowFirstLast = true, PageIndexBoxType = PageIndexBoxType.DropDownList,ShowPrevNext= true, PrevPageText="上一页", FirstPageText="首页", LastPageText="末页", NextPageText="下一页" })
            @*            <span class="pageAct"><a href="#" class="forbidden">首页</a> <a href="#">上一页</a>
                <select class="select">
                    <option>1</option>
                    <option>2</option>
                    <option>3</option>
                    <option>4</option>
                    <option>5</option>
                </select>
                <a href="#">下一页</a> <a href="#">最后一页</a></span> <span class="pageInfo">Total Records: 
                    <em>83</em>Page:<em>1/9</em></span>*@
        </div>
        <!--Paging E-->
    </div>
</body>
</html>
